package org.arrendar.kakeibo.view;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.ExternalLink;
import org.apache.wicket.markup.html.link.Link;

public class MainPage extends WebPage{

	public MainPage(final PageParameters pram){
		
		@SuppressWarnings("serial")
		Link<Void> LinkToInput=new Link<Void>("LinkToInput"){
			public void onClick(){
				setResponsePage(InputForm.class,pram);
			}
		};
		add(LinkToInput);
		

		@SuppressWarnings("serial")
		Link<Void> LinkToMonth=new Link<Void>("LinkToMonth"){
			public void onClick(){
				setResponsePage(KakeiboList.class,pram);
			}
		};
		add(LinkToMonth);
		

		@SuppressWarnings("serial")
		Link<Void> LinkToHistory=new Link<Void>("LinkToHistory"){
			public void onClick(){
				setResponsePage(MonthlyTotal.class,pram);
			}
		};
		add(LinkToHistory);
		
		ExternalLink LinkToLogout = new ExternalLink("LinkToLogout",pram.getString("Logout"));
		add(LinkToLogout);
	}
}
